package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.common.dto.SpuDTO;
import com.leyou.item.entity.Spu;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> querySpuPage(Integer page, Integer rows, Boolean saleable, Integer cid, Integer bid, Integer sid);

    void saveGoods(SpuDTO spuDTO);

    void updateSaleable(Integer id, Boolean saleable);

    ResponseEntity<SpuDTO> querySpuSkuSpuDetail(Integer id);

    void updateMyGoods(SpuDTO spuDTO);

    SpuDTO getBySpuId(Integer id);
}
